package com.gitee.melin.bee.core.jdbc;

import javax.annotation.PreDestroy;
import java.sql.Connection;
import java.sql.SQLException;

public interface ConnectionFactory extends AutoCloseable {
    Connection openConnection() throws SQLException;

    @Override
    @PreDestroy
    default void close() throws SQLException {}
}
